package cm.hyb.Controller.model;

/*增删改查，对汽车进行。汽车有以下属性：
- 价格
- 品牌
- 排量
- 马力
- 颜色*/
public class Cat {

	private int ID;
	private double price;  //价格
	private String brand;  //品牌
	private double displacement;  //排量
	private int horsepower;   //马力
	private String color;  //颜色
	
	public int getID() {
		return ID;
	}
	public void setID(int iD) {
		ID = iD;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public double getDisplacement() {
		return displacement;
	}
	public void setDisplacement(double displacement) {
		this.displacement = displacement;
	}
	public int getHorsepower() {
		return horsepower;
	}
	public void setHorsepower(int horsepower) {
		this.horsepower = horsepower;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public Cat(int ID ,double price,String brand,double displacement,int horsepower,String color) {
		this.ID = ID;
		this.price = price;
		this.brand = brand;
		this.displacement = displacement;
		this.horsepower = horsepower;
		this.color = color;
	}
	public Cat() {
		
	}
	@Override
	public boolean equals(Object object) {
		Cat oCat = (Cat) object;
		return ID==oCat.ID;
		
	}

}
